import service from '@/utils/request'

const ReceiverApi = {
  // ---------------接收器----------------
  listReceiver:function(data){
    return service.get('receiver/page', {params:data})
  },
  addReceiver: function (data) {
    return service.post('receiver', data)
  },
  deleteReceiver: function (data) {
    return service.put('receiver/delete', data)
  },
  editReceiver: function (data) {
    return service.put('receiver', data)
  },
  getReceiverInfo: function (data) {
    return service.get('receiver', {params: data })
  },
  checkReceiverHeartbeatList:function(data){
    return service.get('receiver/log/list', {params: data })
  },
}

export default ReceiverApi
